package com.briup.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.briup.bean.User;
import com.briup.bean.UserExtend;

import java.util.List;

/**
* @author 梦晓
* @description 针对表【cms_user】的数据库操作Service
* @createDate 2024-11-18 14:40:06
*/
public interface UserService extends IService<User> {
    //登录
    User login(String username,String password);
    //登出

    //新增
    void insert(User user);
    //更新
    void setVip(Long id);
    void myUpdate(User user);
    //删除
    void deleteByBatch(List<Long> ids);
    //根据id查询
    User queryById(Long id);
    //查询用户
    IPage<UserExtend> query(Integer pageNum, Integer pageSize, String username,
                            String status, Integer roleId, Integer isVip);
}
